<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCommonCityAgentTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('common_city_agent', function (Blueprint $table) {
            $table->increments('id');
            $table->string('agent_name',255)->comment('代理商姓名');
            $table->string('agent_telnum',255)->comment('代理商电话号码');
            $table->string('intent_agent_city',255)->comment('意向代理城市');
            $table->integer('status',4)->default(0)->comment('状态');
            $table->integer('admin_id',4)->default(0)->comment('状态');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('common_city_agent');
    }
}
